<div class="pageContent">
	<div class="panelBar" style="margin: 3px 0">
		<ul class="toolBar">
			<li><a class="add" href="<?php echo url('category/add')?>"
				mask="true" height="400" target="dialog" title="分类添加"><span>分类添加</span>
			</a>
			</li>
			<li><a class="delete"
				href="<?php echo url('category/delete')?>?did={eid}"
				target="ajaxTodo" title="确定要删除吗?"><span>分类删除</span> </a></li>
		</ul>
	</div>
	<div class="tabs" currentIndex="0" eventType="click"
		style="width: 99.5%; margin: 0 auto">
		<div class="tabsHeader">
			<div class="tabsHeaderContent">
				<ul>
				<?php foreach ($model as $item):?>
					<li><a href="javascript:;"><span><?php echo $item->mtitle?>分类</span>
					</a></li>
					<?php endforeach;?>
				</ul>
			</div>
		</div>
		<div class="tabsContent">
		<?php foreach ($model as $item):?>
			<div>
				<table class="table" id="a_<?php echo $item->id?>" width="100%" layoutH="96">
					<thead>
						<tr>
							<th width="50">编号</th>
							<th>分类名称</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
					<?php $tpl = '<tr target="eid" rel="{value}">
							<td>{value}</td>
							<td>{title}</td>
							<td><a href="'. url('category/add',null,null,array('mode'=>'standard')) .'&mid={value}" mask="true" height="400" target="dialog">修改</a> | 
							<a href="'. url('category/delete',null,null,array('mode'=>'standard')) .'&did={value}" target="ajaxTodo" title="确定要删除吗?">删除</a> | 
							<a href="'. url('category/setcontent',null,null,array('mode'=>'standard')) .'&mid={value}" mask="true" height="405" width="850" target="dialog">设置详细内容</a></td>
						</tr>';
					echo Categorys::get_category_tree($item->id,$tpl);?>
					</tbody>
				</table>
			</div>
			<?php endforeach;?>
		</div>
		<div class="tabsFooter">
			<div class="tabsFooterContent"></div>
		</div>
	</div>
</div>
